package com.kn.common.model;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author zhouxp
 * @create 2021-01-20 10:09
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
public enum RCode {
    SUCCESS(20000,"操作成功"),
    SUCCESS_DOWN(20010,"文件已下载至桌面"),
    SYS_ERROR(40000,"系统错误，请与管理员联系"),
    EXIST_USER(40401,"用户已存在"),
    VALID_ERROR(40001,"验证错误！"),
    NOT_EXIST_USER(40401,"用户不存在"),
    NOT_EXIST_ROLE(40401,"角色不存在"),
    EXIST_ROLE(40401,"角色已存在"),
    INVALID_TOKEN(40410,"Token无效，您无权访问该接口"),
    AUTH_ERROE(40410,"用户名或密码不存在！"),
    NO_AUTH_ERROE(40410,"无权访问！"),;
    private Integer code;
    private String msg;
}
